package Student;

public class Student {
    String name;
    int age;
    String school;
    String major;//专业

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("姓名："+this.name + "年龄："+this.age);
    }

    public Student(String name, int age, String school) {
        this.name = name;
        this.age = age;
        this.school = school;
        System.out.println("姓名：" +this.name + "年龄："+this.age + "学校：" +this.school);
    }

    public Student(String name, int age, String school, String major) {
        this.name = name;
        this.age = age;
        this.school = school;
        this.major = major;
        System.out.println("姓名：" + this.name + "年龄："+ this.age +"学校：" +this.school + "专业："+this.major);
    }
}
